package cn.com.dhcc.turbo.entity.api;

import java.io.Serializable;

import cn.com.dhcc.app.core.util.XstreamUtil;
import cn.com.dhcc.turbo.entity.exch.CmData;
import cn.com.dhcc.turbo.entity.exch.FileData;
import cn.com.dhcc.turbo.entity.exch.RecvFileData;
import cn.com.dhcc.turbo.entity.exch.SendFileData;

import com.thoughtworks.xstream.annotations.XStreamAlias;

/**
 * 详细的路由日志
 */
@XStreamAlias("routelog")
public class RouteLog implements Serializable {
	private static final long serialVersionUID = -5317911144946985389L;
	@XStreamAlias("localStore")
	private RouteLogEntry localStore;
	
	@XStreamAlias("waitCarvedDiscs")
	private RouteLogEntry waitCarvedDiscs;
	
	@XStreamAlias("carvedDiscs")
	private RouteLogEntry carvedDiscs;
	
	@XStreamAlias("analyzeStore")
	private RouteLogEntry analyzeStore;
	
	@XStreamAlias("localPipeline")
	private RouteLogEntry localPipeline;
	
	@XStreamAlias("sendDataToOuterSendPipeline")
	private RouteLogEntry sendDataToOuterSendPipeline;
	
	@XStreamAlias("outerRecvPipeline")
	private RouteLogEntry outerRecvPipeline;
	
	@XStreamAlias("outerEntrepotStore")
	private RouteLogEntry outerEntrepotStore;
	
	@XStreamAlias("outerGAP")
	private RouteLogEntry outerGAP;
	
	
	
	@XStreamAlias("innerGAP")
	private RouteLogEntry innerGAP;
	@XStreamAlias("innerEntrepotStore")
	private RouteLogEntry InnerEntrepotStore;
	@XStreamAlias("innerSendPipeline")
	private RouteLogEntry innerSendPipeline;
	@XStreamAlias("innerRecvPipeline")
	private RouteLogEntry innerRecvPipeline;
	
	@XStreamAlias("remotePipeline")
	private RouteLogEntry remotePipeline;
	@XStreamAlias("remoteStore")
	private RouteLogEntry remoteStore;
	@XStreamAlias("remoteSys")
	private RouteLogEntry remoteSys;
    @XStreamAlias("localSys")
    private RouteLogEntry localSys;

  
	public RouteLogEntry getAnalyzeStore() {
		return analyzeStore;
	}

	public void setAnalyzeStore(RouteLogEntry analyzeStore) {
		this.analyzeStore = analyzeStore;
	}

	public RouteLogEntry getInnerGAP() {
		return innerGAP;
	}

	public void setInnerGAP(RouteLogEntry innerGAP) {
		this.innerGAP = innerGAP;
	}

	public RouteLogEntry getInnerEntrepotStore() {
		return InnerEntrepotStore;
	}

	public void setInnerEntrepotStore(RouteLogEntry innerEntrepotStore) {
		InnerEntrepotStore = innerEntrepotStore;
	}

	public RouteLogEntry getInnerSendPipeline() {
		return innerSendPipeline;
	}

	public void setInnerSendPipeline(RouteLogEntry innerSendPipeline) {
		this.innerSendPipeline = innerSendPipeline;
	}

	public RouteLogEntry getInnerRecvPipeline() {
		return innerRecvPipeline;
	}

	public void setInnerRecvPipeline(RouteLogEntry innerRecvPipeline) {
		this.innerRecvPipeline = innerRecvPipeline;
	}

	public RouteLogEntry getOuterGAP() {
		return outerGAP;
	}

	public void setOuterGAP(RouteLogEntry outerGAP) {
		this.outerGAP = outerGAP;
	}

	public RouteLogEntry getOuterRecvPipeline() {
		return outerRecvPipeline;
	}

	public void setOuterRecvPipeline(RouteLogEntry outerRecvPipeline) {
		this.outerRecvPipeline = outerRecvPipeline;
	}

	public RouteLogEntry getWaitCarvedDiscs() {
		return waitCarvedDiscs;
	}

	public void setWaitCarvedDiscs(RouteLogEntry waitCarvedDiscs) {
		this.waitCarvedDiscs = waitCarvedDiscs;
	}

	public RouteLogEntry getCarvedDiscs() {
		return carvedDiscs;
	}

	public void setCarvedDiscs(RouteLogEntry carvedDiscs) {
		this.carvedDiscs = carvedDiscs;
	}

	public RouteLogEntry getOuterEntrepotStore() {
		return outerEntrepotStore;
	}

	public void setOuterEntrepotStore(RouteLogEntry outerEntrepotStore) {
		this.outerEntrepotStore = outerEntrepotStore;
	}

	public RouteLogEntry getSendDataToOuterSendPipeline() {
		return sendDataToOuterSendPipeline;
	}

	public void setSendDataToOuterSendPipeline(
			RouteLogEntry sendDataToOuterSendPipeline) {
		this.sendDataToOuterSendPipeline = sendDataToOuterSendPipeline;
	}

	public RouteLogEntry getLocalStore() {
		return localStore;
	}

	public RouteLogEntry getLocalPipeline() {
		return localPipeline;
	}

	public RouteLogEntry getRemotePipeline() {
		return remotePipeline;
	}

	public RouteLogEntry getRemoteStore() {
		return remoteStore;
	}

	public RouteLogEntry getRemoteSys() {
		return remoteSys;
	}

	public void setLocalStore(RouteLogEntry localStore) {
		this.localStore = localStore;
	}

	public void setLocalPipeline(RouteLogEntry localPipeline) {
		this.localPipeline = localPipeline;
	}

	public void setRemotePipeline(RouteLogEntry remotePipeline) {
		this.remotePipeline = remotePipeline;
	}

	public void setRemoteStore(RouteLogEntry remoteStore) {
		this.remoteStore = remoteStore;
	}

	public void setRemoteSys(RouteLogEntry remoteSys) {
		this.remoteSys = remoteSys;
	}

    public RouteLogEntry getLocalSys() {
        return localSys;
    }

    public void setLocalSys(RouteLogEntry localSys) {
        this.localSys = localSys;
    }

    public static void setLocalStore(CmData cmData, String status, String msg, String date) throws Exception {
		String routeLogXml = cmData.getRoutelog();
		RouteLog routeLog = new RouteLog();
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setLocalStore(entry);
		routeLogXml = XstreamUtil.toXml(routeLog);
		cmData.setRoutelog(routeLogXml);
	}
    
    public static void setWaitCarvedDiscs(CmData cmData, String status, String msg, String date) throws Exception {
		String routeLogXml = cmData.getRoutelog();
		RouteLog routeLog = XstreamUtil.toObject(RouteLog.class,routeLogXml);
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setWaitCarvedDiscs(entry);
		routeLogXml = XstreamUtil.toXml(routeLog);
		cmData.setRoutelog(routeLogXml);
	}
    
    public static void setCarvedDiscs(CmData cmData, String status, String msg, String date) throws Exception {
		String routeLogXml = cmData.getRoutelog();
		RouteLog routeLog = XstreamUtil.toObject(RouteLog.class,routeLogXml);
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setCarvedDiscs(entry);
		routeLogXml = XstreamUtil.toXml(routeLog);
		cmData.setRoutelog(routeLogXml);
	}
	public static void setAnalyzeStore(CmData cmData, String status, String msg, String date) throws Exception {
		String routeLogXml = cmData.getRoutelog();
		RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setAnalyzeStore(entry);
		routeLogXml = XstreamUtil.toXml(routeLog);
		cmData.setRoutelog(routeLogXml);
	}
	
	public static void setLocalPipeline(CmData cmData, String status, String msg, String date) throws Exception {
		String routeLogXml = cmData.getRoutelog();
		RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setLocalPipeline(entry);
		routeLogXml = XstreamUtil.toXml(routeLog);
		cmData.setRoutelog(routeLogXml);
	}
	public static void setSendDataToOuterSendPipeline(CmData cmData, String status, String msg, String date) throws Exception {
		String routeLogXml = cmData.getRoutelog();
		RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setSendDataToOuterSendPipeline(entry);
		routeLogXml = XstreamUtil.toXml(routeLog);
		cmData.setRoutelog(routeLogXml);
	}
	
	public static void setOuterRecvPipeline(CmData cmData, String status, String msg, String date) throws Exception {
		String routeLogXml = cmData.getRoutelog();
		RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setOuterRecvPipeline(entry);
		routeLogXml = XstreamUtil.toXml(routeLog);
		cmData.setRoutelog(routeLogXml);
	}
	 public static void setOuterEntrepotStore(CmData cmData, String status, String msg, String date) throws Exception {
	    	String routeLogXml = cmData.getRoutelog();
	    	RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
	    	RouteLogEntry entry = new RouteLogEntry();
	    	entry.setStatus(status);
	    	entry.setMessage(msg);
	    	entry.setDate(date);
	    	routeLog.setOuterEntrepotStore(entry);
	    	routeLogXml = XstreamUtil.toXml(routeLog);
	    	cmData.setRoutelog(routeLogXml);
	    }
	 
	 public static void setOuterGAP(CmData cmData, String status, String msg, String date) throws Exception {
	    	String routeLogXml = cmData.getRoutelog();
	    	RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
	    	RouteLogEntry entry = new RouteLogEntry();
	    	entry.setStatus(status);
	    	entry.setMessage(msg);
	    	entry.setDate(date);
	    	routeLog.setOuterGAP(entry);
	    	routeLogXml = XstreamUtil.toXml(routeLog);
	    	cmData.setRoutelog(routeLogXml);
	    }
	 
	 public static void setInnerGAP(CmData cmData, String status, String msg, String date) throws Exception {
	    	String routeLogXml = cmData.getRoutelog();
	    	RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
	    	RouteLogEntry entry = new RouteLogEntry();
	    	entry.setStatus(status);
	    	entry.setMessage(msg);
	    	entry.setDate(date);
	    	routeLog.setInnerGAP(entry);
	    	routeLogXml = XstreamUtil.toXml(routeLog);
	    	cmData.setRoutelog(routeLogXml);
	    }
	    
	    
	    public static void setInnerEntrepotStore(CmData cmData, String status, String msg, String date) throws Exception {
	    	String routeLogXml = cmData.getRoutelog();
	    	RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
	    	RouteLogEntry entry = new RouteLogEntry();
	    	entry.setStatus(status);
	    	entry.setMessage(msg);
	    	entry.setDate(date);
	    	routeLog.setInnerEntrepotStore(entry);
	    	routeLogXml = XstreamUtil.toXml(routeLog);
	    	cmData.setRoutelog(routeLogXml);
	    }
	    
	    
	    public static void setInnerSendPipeline(CmData cmData, String status, String msg, String date) throws Exception {
	    	String routeLogXml = cmData.getRoutelog();
	    	RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
	    	RouteLogEntry entry = new RouteLogEntry();
	    	entry.setStatus(status);
	    	entry.setMessage(msg);
	    	entry.setDate(date);
	    	routeLog.setInnerSendPipeline(entry);
	    	routeLogXml = XstreamUtil.toXml(routeLog);
	    	cmData.setRoutelog(routeLogXml);
	    }
	    
	    
	    public static void setInnerRecvPipeline(CmData cmData, String status, String msg, String date) throws Exception {
	    	String routeLogXml = cmData.getRoutelog();
	    	RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
	    	RouteLogEntry entry = new RouteLogEntry();
	    	entry.setStatus(status);
	    	entry.setMessage(msg);
	    	entry.setDate(date);
	    	routeLog.setInnerRecvPipeline(entry);
	    	routeLogXml = XstreamUtil.toXml(routeLog);
	    	cmData.setRoutelog(routeLogXml);
	    }
	    
		
		
	public static void setRemotePipeline(CmData cmData, String status, String msg, String date) throws Exception {
		String routeLogXml = cmData.getRoutelog();
		RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setRemotePipeline(entry);
		routeLogXml = XstreamUtil.toXml(routeLog);
		cmData.setRoutelog(routeLogXml);
	}

	public static void setRemoteSys(CmData cmData, String status, String msg, String date) throws Exception {
		String routeLogXml = cmData.getRoutelog();
		RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setRemoteSys(entry);
		routeLogXml = XstreamUtil.toXml(routeLog);
		cmData.setRoutelog(routeLogXml);
	}

	public static void setLocalSys(CmData cmData, String status, String msg, String date) throws Exception {
		String routeLogXml = cmData.getRoutelog();
		RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setLocalSys(entry);
		routeLogXml = XstreamUtil.toXml(routeLog);
		cmData.setRoutelog(routeLogXml);
	}

	public static void setRemoteStore(CmData cmData, String status, String msg, String date) throws Exception {
		String routeLogXml = cmData.getRoutelog();
		RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setRemoteStore(entry);
		routeLogXml = XstreamUtil.toXml(routeLog);
		cmData.setRoutelog(routeLogXml);
	}

	public static void setLocalStore(SendFileData fileData, String status, String msg, String date) throws Exception {
		RouteLog routeLog = new RouteLog();
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setLocalStore(entry);
		String routeLogXml = XstreamUtil.toXml(routeLog);
		fileData.setRoutelog(routeLogXml);
	}
	
	public static void setLocalPipeline(SendFileData fileData, String status, String msg, String date) throws Exception {
		String routeLogXml = fileData.getRoutelog();
		RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setLocalPipeline(entry);
		routeLogXml = XstreamUtil.toXml(routeLog);
		fileData.setRoutelog(routeLogXml);
	}

	public static void setRemotePipeline(SendFileData fileData, String status, String msg, String date)
			throws Exception {
		String routeLogXml = fileData.getRoutelog();
		RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setRemotePipeline(entry);
		routeLogXml = XstreamUtil.toXml(routeLog);
		fileData.setRoutelog(routeLogXml);
	}

	public static void setRemoteSys(SendFileData fileData, String status, String msg, String date) throws Exception {
		String routeLogXml = fileData.getRoutelog();
		RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setRemoteSys(entry);
		routeLogXml = XstreamUtil.toXml(routeLog);
		fileData.setRoutelog(routeLogXml);
	}

	public static void setRemoteStore(FileData fileData, String status, String msg, String date) throws Exception {
		String routeLogXml = fileData.getRoutelog();//获取原来的路由信息。
		RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setRemoteStore(entry);
		routeLogXml = XstreamUtil.toXml(routeLog);
		fileData.setRoutelog(routeLogXml);
	}

	public static void setLocalStore(FileData fileData, String status, String msg, String date) throws Exception {
		RouteLog routeLog = new RouteLog();
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setLocalStore(entry);
		String routeLogXml = XstreamUtil.toXml(routeLog);
		fileData.setRoutelog(routeLogXml);
	}

	public static void setLocalPipeline(FileData fileData, String status, String msg, String date) throws Exception {
		String routeLogXml = fileData.getRoutelog();
		RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setLocalPipeline(entry);
		routeLogXml = XstreamUtil.toXml(routeLog);
		fileData.setRoutelog(routeLogXml);
	}

	public static void setRemotePipeline(RecvFileData fileData, String status, String msg, String date)
			throws Exception {
		String routeLogXml = fileData.getRoutelog();
		RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setRemotePipeline(entry);
		routeLogXml = XstreamUtil.toXml(routeLog);
		fileData.setRoutelog(routeLogXml);
	}

	public static void setRemoteSys(RecvFileData fileData, String status, String msg, String date) throws Exception {
		String routeLogXml = fileData.getRoutelog();
		RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setRemoteSys(entry);
		routeLogXml = XstreamUtil.toXml(routeLog);
		fileData.setRoutelog(routeLogXml);
	}

	public static void setRemoteStore(RecvFileData fileData, String status, String msg, String date) throws Exception {
		String routeLogXml = fileData.getRoutelog();//获取原来的路由信息。
		RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setRemoteStore(entry);
		routeLogXml = XstreamUtil.toXml(routeLog);
		fileData.setRoutelog(routeLogXml);
	}
    public static void setLocalSys(SendFileData fileData, String status, String msg, String date) throws Exception {
        String routeLogXml = fileData.getRoutelog();
        RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
        RouteLogEntry entry = new RouteLogEntry();
        entry.setStatus(status);
        entry.setMessage(msg);
        entry.setDate(date);
        routeLog.setLocalSys(entry);
        routeLogXml = XstreamUtil.toXml(routeLog);
        fileData.setRoutelog(routeLogXml);
    }

    public static void setLocalSys(RecvFileData fileData, String status, String msg, String date) throws Exception {
        String routeLogXml = fileData.getRoutelog();//获取原来的路由信息。
        RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
        RouteLogEntry entry = new RouteLogEntry();
        entry.setStatus(status);
        entry.setMessage(msg);
        entry.setDate(date);
        routeLog.setLocalSys(entry);
        routeLogXml = XstreamUtil.toXml(routeLog);
        fileData.setRoutelog(routeLogXml);
    }
    
    
    public static void setWaitCarvedDiscs(FileData fileData, String status, String msg, String date) throws Exception {
        String routeLogXml = fileData.getRoutelog();//获取原来的路由信息。
        RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
        RouteLogEntry entry = new RouteLogEntry();
        entry.setStatus(status);
        entry.setMessage(msg);
        entry.setDate(date);
        routeLog.setWaitCarvedDiscs(entry);
        routeLogXml = XstreamUtil.toXml(routeLog);
        fileData.setRoutelog(routeLogXml);
    }
    public static void setCarvedDiscs(FileData fileData, String status, String msg, String date) throws Exception {
  		String routeLogXml = fileData.getRoutelog();
  		RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
  		RouteLogEntry entry = new RouteLogEntry();
  		entry.setStatus(status);
  		entry.setMessage(msg);
  		entry.setDate(date);
  		routeLog.setCarvedDiscs(entry);
  		routeLogXml = XstreamUtil.toXml(routeLog);
  		fileData.setRoutelog(routeLogXml);
  	}
    
    public static void setAnalyzeStore(FileData fileData, String status, String msg, String date) throws Exception {
		String routeLogXml = fileData.getRoutelog();
		RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setAnalyzeStore(entry);
		routeLogXml = XstreamUtil.toXml(routeLog);
		fileData.setRoutelog(routeLogXml);
	}
    
    
    public static void setSendDataToOuterSendPipeline(FileData fileData, String status, String msg, String date) throws Exception {
		String routeLogXml = fileData.getRoutelog();
		RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
		RouteLogEntry entry = new RouteLogEntry();
		entry.setStatus(status);
		entry.setMessage(msg);
		entry.setDate(date);
		routeLog.setSendDataToOuterSendPipeline(entry);
		routeLogXml = XstreamUtil.toXml(routeLog);
		fileData.setRoutelog(routeLogXml);
	}
    
    public static void setOuterEntrepotStore(FileData fileData, String status, String msg, String date) throws Exception {
    	String routeLogXml = fileData.getRoutelog();
    	RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
    	RouteLogEntry entry = new RouteLogEntry();
    	entry.setStatus(status);
    	entry.setMessage(msg);
    	entry.setDate(date);
    	routeLog.setOuterEntrepotStore(entry);
    	routeLogXml = XstreamUtil.toXml(routeLog);
    	fileData.setRoutelog(routeLogXml);
    }
    
    public static void setOuterGAP(FileData fileData, String status, String msg, String date) throws Exception {
    	String routeLogXml = fileData.getRoutelog();
    	RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
    	RouteLogEntry entry = new RouteLogEntry();
    	entry.setStatus(status);
    	entry.setMessage(msg);
    	entry.setDate(date);
    	routeLog.setOuterGAP(entry);
    	routeLogXml = XstreamUtil.toXml(routeLog);
    	fileData.setRoutelog(routeLogXml);
    }
    public static void setInnerGAP(FileData fileData, String status, String msg, String date) throws Exception {
    	String routeLogXml = fileData.getRoutelog();
    	RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
    	RouteLogEntry entry = new RouteLogEntry();
    	entry.setStatus(status);
    	entry.setMessage(msg);
    	entry.setDate(date);
    	routeLog.setInnerGAP(entry);
    	routeLogXml = XstreamUtil.toXml(routeLog);
    	fileData.setRoutelog(routeLogXml);
    }
    public static void setInnerEntrepotStore(FileData fileData, String status, String msg, String date) throws Exception {
    	String routeLogXml = fileData.getRoutelog();
    	RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
    	RouteLogEntry entry = new RouteLogEntry();
    	entry.setStatus(status);
    	entry.setMessage(msg);
    	entry.setDate(date);
    	routeLog.setInnerEntrepotStore(entry);
    	routeLogXml = XstreamUtil.toXml(routeLog);
    	fileData.setRoutelog(routeLogXml);
    }
    
    public static void setInnerSendPipeline(FileData fileData, String status, String msg, String date) throws Exception {
    	String routeLogXml = fileData.getRoutelog();
    	RouteLog routeLog =XstreamUtil.toObject(RouteLog.class,routeLogXml);
    	RouteLogEntry entry = new RouteLogEntry();
    	entry.setStatus(status);
    	entry.setMessage(msg);
    	entry.setDate(date);
    	routeLog.setInnerSendPipeline(entry);
    	routeLogXml = XstreamUtil.toXml(routeLog);
    	fileData.setRoutelog(routeLogXml);
    }
    @Override
    public String toString() {
        return "RouteLog [" +
                "localStore=" + localStore +
                ", localPipeline=" + localPipeline +
                ", remotePipeline=" + remotePipeline +
                ", remoteStore=" + remoteStore +
                ", remoteSys=" + remoteSys +
                ", localSys=" + localSys +
                ']';
    }
}
